flutter url image

61

Image.network(
  'https://picsum.photos/250?image=9',
)
Image.network('https://picsum.photos/250?image=9')
final ByteData imageData = await NetworkAssetBundle(Uri.parse("YOUR_URL")).load("");
final Uint8List bytes = imageData.buffer.asUint8List();
// display it with the Image.memory widget
Image.memory(bytes);

Comments

Submit
0 Comments